package com.foreknow.demo7;

import java.util.Arrays;

/**
 * @author shkstart
 * @create 2021-07-27 15:25
 */
public class Employee {
    private String id ;  //员工id
    private String name; //员工姓名
    private double sal;  //员工工资



    public Employee[] getEmployees() {
        return employees;
    }

    public void setEmployees(Employee[] employees) {
        this.employees = employees;
    }

    private String dept; //部门名称
    private Employee[] employees;
    public Employee() {
        employees=new Employee[20];
    }

    public Employee(String id, String name, double sal, String dept) {
        this.id = id;
        this.name = name;
        this.sal = sal;
        this.dept = dept;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sal=" + sal +
                ", dept='" + dept + '\''
                ;
    }

}
